package com.redhipps.hips.client.io;

import com.google.gwt.json.client.JSONArray;
import com.google.gwt.json.client.JSONObject;
import com.redhipps.hips.client.model.Context;
import com.redhipps.hips.client.model.Model;

public interface ModelWriter<T extends Model> {

  JSONObject writePrototype(Context context, T model) throws ModelIOException;

  JSONArray writeFully(Context context, T model) throws ModelIOException;

}
